package com.alienlab.finder.repository;

import com.alienlab.finder.domain.CheckTask;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * Spring Data  repository for the CheckTask entity.
 */
@SuppressWarnings("unused")
@Repository
public interface CheckTaskRepository extends JpaRepository<CheckTask, Long> {

    List<CheckTask> findByGuestOpenIdOrderByStartTimeDesc(String guest_openid);

    List<CheckTask> findByAdminOpenIdOrderByStartTimeDesc(String admin_openid);

    List<CheckTask> findByAdminOpenIdAndGuestOpenIdOrderByStartTimeDesc(String admin_openid,String guest_openid);

}
